/** When your routing table is too long, you can split it into small modules**/

import Layout from '@/layout'

const tableRouter = {
  path: '/table',
  component: Layout,
  redirect: '/table/index',
  alwaysShow: true, // will always show the root menu
  meta: {
    title: '项目管理',
    roles: ['myTable', 'participation'] // you can set roles in root nav
  },
  children: [
    {
      path: 'myTable',
      component: () => import('@/views/table/myTable'),
      name: 'myTable',
      meta: {
        title: '我创建项目',
        roles: ['myTable'] // or you can only set roles in sub nav
      }
    },
    {
      path: 'participation',
      component: () => import('@/views/table/participation'),
      name: 'participation',
      meta: {
        title: '我参与项目',
        roles: ['participation'] // or you can only set roles in sub nav
      }
    },
    {
      path: 'audit',
      component: () => import('@/views/table/audit'),
      name: 'audit',
      meta: {
        title: '待审核项目',
        roles: ['audit'] // or you can only set roles in sub nav
      }
    }
  ]
}
export default tableRouter
